package com.mjw.tender.service.fallback;

import com.mjw.tender.domain.TbUser;

public class TbUserServiceFallBack {

    /**
     * 熔断方法
     *
     * @param username {@code String} 用户名
     * @param ex       {@code Throwable} 异常信息
     */
    public static TbUser getByUsernameFallback(String username, Throwable ex) {
        TbUser tbUser = new TbUser();
        tbUser.setUsername("admin");
        tbUser.setPassword("55555555");
        return tbUser;
    }

}
